﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Hold'em</title>
    <style>
        body {
            background-color: rgb(224, 226, 182);
        }

        #content {
            margin: auto;
            width: 900px;
            background-color: rgb(183, 231, 215);
        }

        span {
            color: red;
        }
    </style>
    <script src="http://codeorigin.jquery.com/jquery-2.0.3.min.js"></script>
    <script>
        $(function () {
            $("#run").click(function () {
                $.ajax({
                    url: "game.ashx",
                    success: function (data) {
                        $("#cout").html(data.
                            replace(/\r\n/gm, '<br/>').
                            replace(/♦/gm, '<span>♦</span>').
                            replace(/♥/gm, '<span>♥</span>'));
                    }
                });
            });
        });
    </script>
</head>
<body>
    <div id="content">
        <div id="controller">
            <button id="run">Rerun</button>
        </div>
        <div id="cout">
        </div>
    </div>
</body>
</html>
